package com.wxd.modules.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wxd.modules.common.dao.CauseDao;
import com.wxd.modules.common.entity.Cause;
import com.wxd.modules.common.service.CauseService;
import org.springframework.stereotype.Service;

@Service("causeService")
public class CauseServiceImpl extends ServiceImpl<CauseDao, Cause> implements CauseService {


    @Override
    public Cause queryValue(Integer key) {

        return baseMapper.selectOne(new QueryWrapper<Cause>().eq("cause_key",key));
    }
}
